package com.gy.spring.mvc.common.interceptor;

/**
 * TODO 异常类
 *
 * @author geYang
 * @date 2018-04-10
 */
public class MyException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private int code;

    public MyException(int code, String msg) {
        super(msg);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

}
